import request from '@/utils/requestByForm'

// 获取素材中心所有图片
export function getAllMaterialImg() {
  return request({
    baseURL: process.env.DESIGN_API,
    url: 'api/get-all-material-img',
    method: 'post'
  })
}

// 获取素材列表
export function getMaterialList() {
  return request({
    baseURL: process.env.DESIGN_API,
    url: 'api/get-material-list',
    method: 'post'
  })
}

// 获取文件夹树状结构
export function getTreeFolder() {
  return request({
    baseURL: process.env.DESIGN_API,
    url: 'api/get-tree-folder',
    method: 'post'
  })
}

